home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
emula
/
arosdv19.lha
/
AROS
/
intuition
/
lockibase.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-24
|
1KB
|
62 lines
/*
(C) 1995-96 AROS - The Amiga Replacement OS
$Id: lockibase.c,v 1.2 1996/10/24 15:51:21 aros Exp $
Desc:
Lang: english
*/
#include <clib/exec_protos.h>
#include "intuition_intern.h"
/*****************************************************************************
NAME */
#include <clib/intuition_protos.h>
AROS_LH1(ULONG, LockIBase,
/* SYNOPSIS */
AROS_LHA(ULONG, What, D0),
/* LOCATION */
struct IntuitionBase *, IntuitionBase, 69, Intuition)
/* FUNCTION
Locks Intuition. While you hold this lock, no fields of Intuition
will change. Please release this as soon as possible.
INPUTS
What - Which fields of Intuition should be locked. The only allowed
value for this is currently 0 which means to lock everything.
RESULT
The result of this function must be passed to UnlockIBase().
NOTES
You *must not* call this function if you have any locks on other
system resources like layers and LayerInfo locks.
EXAMPLE
BUGS
SEE ALSO
UnLockIBase()
INTERNALS
HISTORY
29-10-95 digulla automatically created from
intuition_lib.fd and clib/intuition_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
ObtainSemaphore (GetPrivIBase(IntuitionBase)->SigSem);
return What;
AROS_LIBFUNC_EXIT
} /* LockIBase */